// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_INV_PICKING_ITEMS
// * CreateDate    : 2012/3/5 15:58:58
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/5 15:58:58
// * LastChanger   : 2012/3/5 15:58:58
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class InvPickingItemsEntity : EntityBase
    {
        public InvPickingItemsTable TableSchema
        {
            get
            {
                return InvPickingItemsTable.Current;
            }
		}
		
		public InvPickingItemsEntity()
        {

        }
		
		public InvPickingItemsEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ItemId = Convert.ToString(CommonFunctions.ToObject(dr["ITEM_ID"]));
			this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
			this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
			this.PickingQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["PICKING_QTY"]));
        }
		
		public InvPickingItemsEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ItemId = Convert.ToString(CommonFunctions.ToObject(dr["ITEM_ID"]));
			this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
			this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
			this.PickingQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["PICKING_QTY"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return InvPickingItemsTable.Current;
            }
        }
		
		#region Perporty List
        public string ItemId
        {
            get { return Convert.ToString(GetData(InvPickingItemsTable.C_ITEM_ID)); }
            set { SetData(InvPickingItemsTable.C_ITEM_ID, value); }
        }
		
        public string ApplicationId
        {
            get { return Convert.ToString(GetData(InvPickingItemsTable.C_APPLICATION_ID)); }
            set { SetData(InvPickingItemsTable.C_APPLICATION_ID, value); }
        }
		
        public string ProductId
        {
            get { return Convert.ToString(GetData(InvPickingItemsTable.C_PRODUCT_ID)); }
            set { SetData(InvPickingItemsTable.C_PRODUCT_ID, value); }
        }
		
        public decimal PickingQty
        {
            get { return Convert.ToDecimal(GetData(InvPickingItemsTable.C_PICKING_QTY)); }
            set { SetData(InvPickingItemsTable.C_PICKING_QTY, value); }
        }
		
		#endregion
	}
	
	
}	

